/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package javaapplication7;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;

/**
 *
 * @author yakimovich
 */
public class Test {

    public static void main(String[] args) throws ParseException {
//
//        BidiMap map1 = new DualTreeBidiMap();
////        System.out.println(map1);
//        
////        map1.put("A", "B");  // contains A mapped to B, as per Map
////        System.out.println(map1);
//        
//        map1.put("A", "C");  // contains A mapped to C, as per Map
////        System.out.println(map1);
//       
////        map1.put("B", "B");  // contains A mapped to B, as per Map
////        System.out.println(map1);
//        map1.put("D", "A");
//        map1.put("C", "B");  // contains C mapped to B, key A is removed
//        System.out.println(map1);
//        
//        map1.inverseBidiMap();
//        System.out.println(map1.get("A"));
//        System.out.println(map1);
//        
//        System.out.println(map1.get("A"));
//        RuntimeException exc = new RuntimeException();
//        System.out.println(exc.getStackTrace());
//        
//        System.out.println((new StringUtils()).repeat("e", 4000));

        SimpleDateFormat dateFormatter = new SimpleDateFormat("yyyyMMdd");
        Date birthDate = dateFormatter.parse("15830605");
//              if (birthDate.after(new Date())){
        System.out.println(birthDate.after(new Date()));
        String MIN_BIRTHDATE = "18900101";
        Date minBirthDate = dateFormatter.parse(MIN_BIRTHDATE);
        System.out.println(birthDate.before(minBirthDate));
        System.out.println(!org.apache.commons.lang3.StringUtils.isAlphanumeric("102!9"));

        Calendar cal = Calendar.getInstance();
        cal.set(2013, Calendar.JANUARY, 9); //Year, month and day of month
        Date date = cal.getTime();

     
       
//      }
        


      if (date.before(new Date())) {
          System.out.println("Date of birthday must not be more then today's date");
          
          
      }
        System.out.println(System.getProperty("line.separator"));
      
    }
}
